//
//  BHMyOrderListTableViewCell.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/8/27.
//

import UIKit

class BHMyOrderListTableViewCell: UITableViewCell {

    @IBOutlet weak var name_label: UILabel!
    
    @IBOutlet weak var state_label: UILabel!
    
    
    @IBOutlet weak var icon_imageView: UIImageView!
    
    @IBOutlet weak var pro_name_label: UILabel!
    
    
    @IBOutlet weak var order_time_label: UILabel!
    
    @IBOutlet weak var price_label: UILabel!
    
    var model: BHMeUserOrderInfoModel? {
        didSet {
            if model == nil {
                return
            }
            
            self.name_label.text = model?.venueName
            self.pro_name_label.text = model?.title
            self.order_time_label.text = model?.orderTime
            self.price_label.text = "¥\(model?.payPrice ?? "0.00")"
            self.state_label.text = model?.statuText
            self.icon_imageView.sd_setImage(with: URL.init(string: model?.photo ?? ""), completed: nil)
        }
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    
    static var cellHeight: CGFloat {
        get {
            return 122
        }
    }
}
